package com.mustafaiev.tair.cts.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToOne;
import javax.persistence.Table;

import org.apache.tapestry5.beaneditor.NonVisual;

/**
 * @author tair
 * 
 */
@Entity
@Table(name = "costs")
public class Cost implements ICostTrackingSystemModel {

    private static final long serialVersionUID = -6222053357474851003L;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @NonVisual
    private Long id;

    @OneToOne
    private Basket basket;

    private double summ;

    public Long getId() {
        return id;
    }

    public void setId(final Long id) {
        this.id = id;
    }

    public Basket getBasket() {
        return basket;
    }

    public void setBasket(final Basket basket) {
        this.basket = basket;
    }

    public double getSumm() {
        return summ;
    }

    public void setSumm(final double summ) {
        this.summ = summ;
    }

}
